'''
Created on Apr 20, 2012

@author: root
'''

class Node:
    
    hostName = "Hostname"
    ipAddress = "192.168.100.100"
    osVersion = ""
    javaVersion = "Oracle"
    personalities= "njd" # n = NameNode, j = JobTracker, d = DataNode + TaskTracker
    cpuCount = ""
    cpuType = ""
    total_rawCapacity = ""
    ramInfo = ""
    adminUser = ""
    adminPW = ""
    Disks = []
    Roles = []
    Services = []
    
    def AddDisk(self,disk):
        self.Disks.append(disk)
    
   
    def AddRole(self,Role):
        self.Roles.append(Role)
    
    
    def __init__(self, hostName, ipAddress,personalities):
        self.hostName = hostName
        self.ipAddress = ipAddress
        self.personalities = personalities
        self.Roles = []
        self.Disks = []

